Skip to content

perf(cmake): Unix Release -fno-math-errno with -ffast-math#8

Merged
cursor[bot] merged 1 commit intomainfrom
cursor/engine-release-opt-39fd
Apr 27, 2026
Merged

perf(cmake): Unix Release -fno-math-errno with -ffast-math#8
cursor[bot] merged 1 commit intomainfrom
cursor/engine-release-opt-39fd

Conversation

@timfox
Copy link
Copy Markdown
Owner

@timfox timfox commented Apr 27, 2026

Summary

Adds -fno-math-errno to Unix CMAKE_*_FLAGS_RELEASE alongside the existing -ffast-math. This is a standard pairing: it avoids errno writes from inlined libm calls in hot paths, improving codegen and slightly reducing overhead, while remaining consistent with the project’s existing fast-math choice for Release.

Debug / ASan paths are unchanged.

Note on “everything on main”

Open PR #2 (cursor/sturmgeist-main-ci-sync-bee0) is merge-conflicting with current main and would revert large parts of the fork (CI fixes, vendored JoyStick, docs). It should be closed or fully rebased before merge—not applied as-is.

Testing

Please confirm CI on this branch completes successfully.

Open in Web Open in Cursor 

Pairs with existing -ffast-math so hot math paths skip errno side
effects; supported by GCC/Clang used in Linux CI and typical dev builds.

Co-authored-by: Tim Fox <timfox@outlook.com>
@cursor cursor Bot merged commit 0f62c62 into main Apr 27, 2026
10 checks passed
@cursor cursor Bot deleted the cursor/engine-release-opt-39fd branch April 27, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants